/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.circuitrunners.frc2011.dashboard;
import com.circuitrunners.frc2011.*;
import edu.wpi.first.wpilibj.*;

/**
 *
 * @author Anupam
 */
public class DriveStation extends Components {

    public static DriverStation DS;
    public  Relay triangle, circle, square;
    public DriveStation(){

    }


    public void run() {
        boolean triangleSwitch = DS.getDigitalIn(1);
        boolean circleSwitch = DS.getDigitalIn(2);
        boolean squareSwitch = DS.getDigitalIn(3);
        if(triangleSwitch){
            triangle.setDirection(Relay.Direction.kForward);
        }
        else if(circleSwitch){
            circle.setDirection(Relay.Direction.kForward);
        }
        else if(squareSwitch){
            square.setDirection(Relay.Direction.kForward);
        }
        else;
    }

    public void init() {
        DS = DriverStation.getInstance();
        triangle = new Relay(4,2);
        circle = new Relay(4,3);
        square = new Relay(4,4);
    }

    public void disable() {

    }


}
